<div id="page-wrapper">
    <div class="row headline" >
        <div class="col-md-12 headline-title" >
            <h3>后台设置 <img src="assets/img/angle-right.png" alt="" class="tubiao"></h3><h4>一对一优惠设置</h4>
        </div>
    </div>
    <div class="row daily-search">
        <div class="col-md-2" >
            <button class="search-content" style="background: #4da1ff;color: #fff;	box-shadow: #84bdff 0px 0px 8px;" data-toggle="modal" data-target="#studentadd">添加优惠政策</button>
        </div>
        <div class="col-md-2" ng-if="admin==true">
            <schoolcampus></schoolcampus>
        </div>
        <div class="col-md-1" ng-if="admin==true">
            <button class="search-content"  style="background: #4da1ff;color: #fff;	box-shadow: #84bdff 0px 0px 8px;" ng-click="find()">查询</button>
        </div>
    </div>
    <div class="container-fluid text-center">
        <!-- 模态框（Modal） -->
        <div class="modal fade" id="studentadd" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" data-backdrop="static">
            <div class="modal-dialog" style="width: 1000px;">
                <div class="modal-content" >
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                        <h2 class="modal-title" > <span class="fa fa-edit">添加优惠政策</span></h2>
                    </div>
                    <form >
                        <div class="modal-body">
                            <!-- 提交表单到服务器 -->
                            <table width="100%" align="center">
                                <tbody class="modal-information">
                                <tr>
                                    <td  height="52">优惠档：</td>
                                    <td  height="52">赠送小时：</td>
                                </tr>
                                <tr class="paikeconter">
                                    <td height="52">
                                        <input type="text" class="form-control" style="background: #fef6f9;border: 1px solid #fce5ee"   id="applyOneName" placeholder="请填写优惠名称">
                                    </td>
                                    <td height="52">
                                        <input type="text" class="form-control" style="background: #fef6f9;border: 1px solid #fce5ee"  id="applyOnehour" placeholder="请填写具体数字">
                                    </td>
                                </tr>
                                </tbody>
                            </table>
                        </div>
                        <div class="modal-footer">
                            <button type="button" class="btn btn-primary-tf" id="save" ng-click="add()">保存</button>
                        </div>
                    </form>
                </div>
                <!-- /.modal-content -->
            </div>
            <!-- /.modal -->
        </div>
    </div>
    <div>
    <table class="table ">
        <thead class="yuangong">
        <tr>
            <th>序号</th>
            <th>优惠档</th>
            <th>赠送小时数</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody class="xuhao">
        <tr ng-repeat="data in datas">
            <td>{{data.id}}</td>
            <td>{{data.name}}</td>
            <td>{{data.hour}}</td>
            <td>
                <span class="operation fa fa-trash-o" ng-click="delete($index)">删除</span>
            </td>
        </tr>
        </tbody>
    </table>
    </div>

    <div class="row form-inline">
        <div class="col-md-8">
            <uib-pagination
                    total-items="page.totalCount"
                    ng-model="page.pageNo"
                    max-size="5"
                    class="samplePage pagination"
                    boundary-links="true"
                    force-ellipses="false"
                    first-text="首页"
                    last-text="末页"
                    previous-text="上一页"
                    next-text="下一页"
                    items-per-page="page.limit"
                    ng-change="pageChanged()"
                    boundary-link-numbers="true"
            >
            </uib-pagination>
        </div>
        <div class="col-md-4">
            <input type="text" class="form-control" style="width:100px;margin:25px 0" name="" ng-model="go" />
            <a class="btn btn-primary btn-sm" ng-click="setPage(go)">跳转</a>
        </div>
    </div>


</div>
